<include file="Public:header" />

<load href="__JS__/upload/uploadify.css" />

<load href="__JS__/swfobject.js" />

<script type="text/javascript" src="__JS__/jquery.uploadify.v2.1.4.min.js"></script> 

<div class="content">

<!-----------------------------------------内容开始--------------------------------------------------->

<div class="infoBox">

<form name="form" action="{:U('doanli')}" method="post" onsubmit="return checkform();">

<input type="hidden" name="id" value="{$id}" />





<table width="100%" border="0" cellpadding="0" cellspacing="0" id="basic">

<tr>

<td width="11%" class="infoBoxTd">客户姓名：</td>

<td colspan="2"><INPUT name="name" value="{$name}" class="formTitle" size="40">

</td>

</tr>


<tr>

<td width="11%" class="infoBoxTd">联系电话：</td>

<td colspan="2"><INPUT name="dianhua" value="{$dianhua}" class="formTitle" size="40">

</td>

</tr>

<tr>

<td width="20%" class="infoBoxTd">意向型号：</td>

<td colspan="2"><select name="fenlei">

<volist name="list1" id="l">

<option value="{$l.id}" <eq name="l.id" value="$fenlei">selected</eq>>{$l.name}</option>

</volist>

</select></td>

</tr>

<tr>

<td width="11%" class="infoBoxTd">抽奖状态：</td>

<td colspan="2"><INPUT name="choujiang" value="{$choujiang}" class="formTitle" size="40">

</td>

</tr>


<tr>

<td width="20%" class="infoBoxTd">首页公示：</td>

<td colspan="2"><select name="zhuangtai">

<option value="1">是</option>
<option value="0">否</option>

</select></td>

</tr>

</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td class="infoBoxTd">&nbsp;</td>

<td align="left"><input type="submit" name="Button1" value="保存" class="formInput01" /></td>

</tr>

</table>

</form>

</div>

<!-----------------------------------------内容结束--------------------------------------------------->

</div>

<script language="javascript">

//编辑器

var k1;

KindEditor.ready(function(K) {

	k1 = K.create('#content', {

		allowFileManager : true

	});

});



//图片上传

$("#file_upload").uploadify({

		'uploader'       : '__JS__/swf/uploadify.swf',

		'script'         : '__JS__/upload/uploadify.php',

		'cancelImg'      : '__JS__/upload/cancel.png',

		'folder'         : '__UPLOAD__/anli/{:date("Ym")}',

		'queueID'        : 'fileQueue',

		'sizeLimit'      :	2 * 1000 * 1024,

		'fileExt'        : '*.jpg;*.gif;*.png;', //允许文件上传类型,和fileDesc一起使用.

		'fileDesc'       : '*.jpg;*.gif;*.png;',  //选择文件对话框中的提示文本.

		'auto'           : true,

		'multi'          : false,	

		'onComplete':function(event,queueId,fileObj,response,data){

			$('input[name="tupian"]').val(response);

			$('#tupian').attr('src', response);

		}

});







//表单验证

function checkform(){

	var b = $('input[name="name"]').val();

	if(b == ''){

		ui.error('请输入标题');

		return false;

	}



}

</script>

    



<include file="Public:footer" />

